home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
help_ai
/
cumprod
< prev
next >
Wrap
Text File
|
1995-02-18
|
666b
|
30 lines
cumprod:
Syntax: cumprod ( A )
Description:
cumprod computes the running, or cumulative product of the
input, A. If the input is a rectangular matrix, then the
cumulative product is performed over the columns of the
matrix.
Example:
> a=1:4
a =
1 2 3 4
> cumprod (a)
1 2 6 24
> a = [1,2,3;4,5,6;7,8,9]
a =
1 2 3
4 5 6
7 8 9
> cumprod (a)
1 2 3
4 10 18
28 80 162
See Also: cumsum, prod, sum